package com.huangliusong.aop.demo4;



import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

import java.lang.reflect.Method;

public class MyAroundAdvice implements MethodInterceptor {


    public Object invoke(MethodInvocation methodInvocation) throws Throwable {
        System.out.println("环绕前------------------------");
       //执行目标方法
       Object object= methodInvocation.proceed();
        System.out.println("环绕后--------------------------");
        return object;
    }
}
